<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>乐淘首页</title>
		<link rel="stylesheet" href="assets/mui/css/mui.min.css" />
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" href="assets/font-awesome-4.5.0/css/font-awesome.min.css" />	
		<link rel="stylesheet" href="css/category.css" />
	</head>
	<body>
		<div class="container">
			<div class="lt_topnav">
				<a class="btn_left" href="javascript:;history.back()"><span class="mui-icon mui-icon-arrowleft"></span></a>				
				<h3>乐淘云购</h3>
				<a class="btn_right" href="search.html"><span class="fa fa-search"></span></a>
			</div>
			<div class="lt_content">
				<div class="lt_wrapper">
					<!--左侧边栏-->
					<div class="lt_cateLeft">
						<ul>
						<!-- 左边栏渲染 -->
						</ul>
					</div>
					<!--右侧边栏-->
					<div class="lt_cateRight">
						<ul class="mui-clearfix">
							<!-- 动态渲染 -->
							
						</ul>
					</div>
				</div>				
			</div>
			<div class="lt_tabnav">
				<ul>
					<li><a href="index.html"><span class="fa fa-home"></span><p>首页</p></a></li>
	                <li class="now"><a href="category.html"><span class="fa fa-bars"></span><p>分类</p></a></li>
	                <li><a href="user/cart.html"><span class="fa fa-shopping-cart"></span><p>购物车</p></a></li>
	                <li><a href="user/index.html"><span class="fa fa-user"></span><p>会员中心</p></a></li>
				</ul>
			</div>
		</div>
		<script type="text/template" id="firstCategory">
			<% for (var i = 0; i < rows.length; i++) { %>
				<li data-id="<%= rows[i].id %>" class="<%= i===0 ? 'now' : '' %>"><a href="javascript:;"><%= rows[i].categoryName %> </a></li>
			<% } %>
		</script>
		<script type="text/template" id="secondCategory">
			<%if(rows.length == 0){%>
				<p>暂时没有分类数据</p>
			<% } else { %>
				<% for(var i = 0 ; i < rows.length; i++ ) {%>
				<li><a href="#"><img src="<%=rows[i].brandLogo%>" onerro="this.src='images/none.jpg'"/><p><%=rows[i].brandName%></p></a></li>
				<% }%>
			<% }%>
		</script>
		<script src="assets/mui/js/mui.min.js"></script>
		<script src="js/common.js"></script>
		<script src="assets/zepto/zepto.min.js"></script>
		<script src="assets/artTemplate/template-native.js"></script>
		<script src="js/category.js"></script>	
		
	</body>
</html>
